﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DataCom;
using ConfigurationFactory;
using System.Data;

namespace DBAccessLib
{
    public static class LineInfo
    {
        public static DataTable GetLineInfo(string lineCode)
        {
            ILineInfoDataAccess dataAccess = DataCommunicationFactory.GetLineInfoDataAccess();
            return dataAccess.GetLineInfo(lineCode);
        }

        public static DataTable GetLineInfo_New(string lineCode,string NumTime)
        {
            ILineInfoDataAccess dataAccess = DataCommunicationFactory.GetLineInfoDataAccess();
            return dataAccess.GetLineInfo_New(lineCode, NumTime);
        }

        public static bool UpdateLineInfo(DataTable dtLineInfo, DataTable dtLineShift)
        {
            ILineInfoDataAccess dataAccess = DataCommunicationFactory.GetLineInfoDataAccess();
            return dataAccess.UpdateLineInfo(dtLineInfo, dtLineShift);
        }

        public static DataTable GetCommentInfo()
        {
            ILineInfoDataAccess dataAccess = DataCommunicationFactory.GetLineInfoDataAccess();
            return dataAccess.GetCommentInfo();
        }

        public static bool UpdateCommentInfo(DataTable dtCommentInfo)
        {
            ILineInfoDataAccess dataAccess = DataCommunicationFactory.GetLineInfoDataAccess();
            return dataAccess.UpdateCommentInfo(dtCommentInfo);
        }
    }
}
